package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-03-25
 */
@Data
@TableName("processors")
@ApiModel("cpu使用")
public class Processor implements Serializable {

    @TableId(value = "processor_id", type = IdType.AUTO)
    @ApiModelProperty("处理器的唯一标识ID")
    private Integer processorId;

    @TableField("entPhysicalIndex")
    @ApiModelProperty("实体物理索引")
    private Integer entPhysicalIndex;

    @TableField("hrDeviceIndex")
    @ApiModelProperty("设备索引")
    private Integer hrDeviceIndex;

    @ApiModelProperty("设备的唯一标识ID")
    private Integer deviceId;

    @ApiModelProperty("处理器的OID")
    private String processorOid;

    @ApiModelProperty("处理器的索引")
    private String processorIndex;

    @ApiModelProperty("处理器的类型")
    private String processorType;

    @ApiModelProperty("处理器的使用率")
    private Integer processorUsage;

    @ApiModelProperty("处理器的描述信息")
    private String processorDescr;

    @ApiModelProperty("处理器的精度")
    private Integer processorPrecision;

    @ApiModelProperty("处理器使用率的告警阈值")
    private Integer processorPercWarn;
}
